from selenium.webdriver.common.by import By

# 搜索框
input_text = By.XPATH,'//*[@id="search-input"]'
# 搜索按钮
input_brn = By.XPATH,'//*[@id="ai-topsearch"]'
# 第一个商品
frist_good = By.XPATH,'/html/body/div[4]/div/ul/li[1]'
# 购买数量增加
good_add = By.XPATH,'//*[@id="add"]'
# 购买数量减少
good_min = By.XPATH,'//*[@id="min"]'
# 收藏
good_collect =By.XPATH,'/html/body/div[4]/div[2]/div[2]/div[3]/div[1]/span/em[1]'
# 加入购物车
into_shopping_cart = By.XPATH,'/html/body/div[4]/div[2]/div[2]/div[3]/div[3]/div/button'
# 立即购买
good_buy = By.XPATH,'/html/body/div[4]/div[2]/div[2]/div[3]/div[2]/div/button'
# 现金支付
good_payment = By.CSS_SELECTOR,'.payment-list li'
# 提交订单
submit_order_for_good = By.CSS_SELECTOR,'body > div:nth-child(5) > div > div.order-nav > div > form > div > button'
# 回到首页
back_home_page = By.XPATH,'/html/body/div[2]/div/div[2]/a/img'
# 信息提示
search_error_text = By.XPATH,'//*[@id="common-prompt"]/p'
# 商品售卖情况
good_info = By.XPATH,'/html/body/div[4]/div[2]/div[2]/div[3]/p'
#选择地址
select_arsa1 = By.XPATH,'/html/body/div[4]/div/div[1]/div[2]/button'
select_arsa2 = By.XPATH,'//*[@id="extraction-address-popup"]/div/div[2]/ul/li/button'


